package com.wang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname PageController
 * @Description TODO
 * @Date 2024/8/30 8:36
 * @Created by pc
 */
@Controller
public class PageController {

    @GetMapping("/{pageName}.html")
    public String index(@PathVariable("pageName")String pageName){
        return pageName;
    }
}
